package io.qar.flavors.service;

import io.qar.commons.mybatis.service.CrudService;
import io.qar.flavors.dto.DishFlavorsDTO;
import io.qar.flavors.dto.FlavorsDTO;
import io.qar.flavors.entity.FlavorsEntity;
import io.qar.tags.dto.TagsDTO;

import java.util.List;

/**
 * 菜品口味表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 3.0 2024-06-10
 */
public interface FlavorsService extends CrudService<FlavorsEntity, FlavorsDTO> {

    List<DishFlavorsDTO> flavorsByDishId(Long dishId);

    void saveAndUpdateFlavor(Long dishId, List<DishFlavorsDTO> flavorsList);

}